﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DoubleH.Utility;
using System.Collections;

namespace DoubleH
{
    /// <summary>
    /// SearchOrder.xaml 的交互逻辑
    /// </summary>
    public partial class SearchOrder : Window
    {
        public SearchOrder()
        {
            InitializeComponent();

            InitEvent();
        }

        IEnumerable obj = null;
        /// <summary>
        /// 获取返回的数据
        /// </summary>
        public IEnumerable ReturnObj
        {
            get { return obj; }
        }

        public void Init(DataTableText tableText)
        {
            uCSearchOrder1.Init(tableText);
        }

        private void InitEvent()
        {
            buttonSearch.Click += (ss, ee) => { obj = uCSearchOrder1.GetSearchData(); this.Close(); };
        }
    }
}
